package org.xxx.epms.models.epms.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.xxx.epms.models.epms.model.Monitor;
import org.xxx.epms.models.epms.mapper.MonitorMapper;
import org.xxx.epms.models.epms.service.MonitorService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lb
 * @since 2024-06-08
 */
@Service
public class MonitorServiceImpl extends ServiceImpl<MonitorMapper, Monitor> implements MonitorService {

    @Autowired
    private MonitorMapper monitorMapper;

    @Override
    public Monitor getMonitorByMonId(int monId) {
        QueryWrapper<Monitor> queryWrapper = new QueryWrapper<Monitor>();
        queryWrapper.eq("mon_id", monId);
        return monitorMapper.selectOne(queryWrapper);
    }
}
